<?php 
/**
 * 配置管理模型
 */
class ConfigModel extends Model{
    public $table ='config' ;
    
    public $auto = array();
    
    public $validate = array();
    
    public function editConfig(){
		$data=Q("post.");
		foreach ($data as $coid => $value) {
			$this->where("coid={$coid}")->update(array('value'=>$value));
		}
		return true;
    }
 }
 
 
 
 
 
 
 
 
 
 
 





 ?>